Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODLink


ShowSourceContent

The ShowSourceContent method requests the source part of the link to make the source content visible.

void ShowSourceContent ();
DISCUSSION
If your part is the destination of this link, you should call this method in your part's HandleEvent method after calling the ShowLinkDestinationInfo method if the latter method returns true and its output parameter indicates that the user requested to see the source content. You also should call this method in your part's EditInLinkAttempted method if the user elects to find the source of the link.

This method causes the source part's RevealLink method to be called, making the source content visible.

If this method throws an exception, you should display an alert message informing the user that the link source content could not be shown.

EXCEPTIONS
kODErrBrokenLink
Internal error; the link-source object disconnected from its destinations.
kODErrBrokenLinkSource
The link has been broken at the source.
kODErrCannotFindLinkSource
Cannot find the source of this cross-document link.
kODErrCannotFindLinkSourceEdition
The edition file for this cross-document link is missing (the link may have been broken at the source).
This method may also throw exceptions that were raised by the ODPart::RevealLink method.

SEE ALSO
The ODLink::ShowLinkDestinationInfo method (page 357).
The ODPart::EditInLinkAttempted method (page 509).
The ODPart::RevealLink method (page 547).
"Selection Info" on page 252 in OpenDoc Programmer's Guide.
"Revealing the Source of a Link" on page 392 in OpenDoc Programmer's Guide.
"Editing a Link Destination" on page 393 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help